import request from "@http/request";
import {
  Toast
} from 'antd-mobile'

export default {
  // 获取验证码
  getCaptchas() {
    const error = '机器人服务初始化失败'

    return request({
      url: '/enterprise/captchas',
      method: 'get',
    }).then(res => {
      return res
    }).catch((err) => {
      Toast.info(error)
      throw err
    })
  },


}